﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

using Hangjing.Model;
using Hangjing.SQLServerDAL;
using Hangjing.Common;

/// <summary>
/// 分享收支记录列表
/// </summary>
public partial class AndroidAPI_usershearincomelog : APIPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        int userid = HjNetHelper.GetPostParam("userid", 0);//会员编号

        EPointRecord dal = new EPointRecord();

        int pagesize = HjNetHelper.GetPostParam("pagesize", 8);
        int pageindex = HjNetHelper.GetPostParam("pageindex", 1);

        PagerResult<user_share_income_log> result = new UserShareIncomeLogDal().GetList(UserId: userid,
            pagerParameter: new PagerParameterInfo(pageindex, pagesize),
            sortParameter: new List<SortParameterInfo>() { new SortParameterInfo() { PropertyName = "id", Ascending = PagerSortType.DESC } });

        rs.state = 1;
        rs.data = result;


        Response.Write(sendToClient());
        Response.End();


    }
}
